package com.ase.单例模式;


import com.ase.单例模式.volatiles.Singleton;

/**
 * @author gyhstart
 * @create 2021/3/2 - 10:16
 **/
public class test {
    public static void main(String[] args) {
        for (int i=0;i<10;i++){
            new Thread(()->{
                Singleton.getInstance();
                Singleton.getInstance().Message();
            }).start();
        }
    }
}
